<!--
 * @Author: gyc
 * @Date: 2020-05-23 11:09:19
 * @LastEditTime: 2020-06-22 14:13:40
 * @Description: Nuxt测试版
--> 
<template>
  <div class="share-box">
    <div class="share-box-top">
      <div class="share-box-left">
        <img src="/img/avatar.jpg" />
      </div>
      <div class="share-box-right">
        <h3>[动漫]辉夜姬大小姐想让我告白!</h3>
        <div>分享时间:2020-5-23</div>
      </div>
    </div>
    <div class="share-box-bottom">
      <div class="box-main-msg">简介:发生大大声道大大阿萨德啊打算按时啊打算按时大声道微风无法潍坊港大叔大婶打算打算大大阿萨德啊啊实打实大啊按时</div>
      <div class="share-box-btn">
        <span>顶(0次)</span>
        <span>
          <nuxt-link to="/movieInfo">查看详情</nuxt-link>
        </span>
        <Icon type="md-image" size="16" @click="lookImg" />
      </div>
    </div>
    <mo-mask v-if="look" @cancel="noLook"></mo-mask>
  </div>
</template>

<script>
import mask from "@/components/mask/mask";
export default {
  name: "shareBox2",
  data() {
    return {
      look: false
    };
  },
  methods: {
    lookImg() {
      this.look = true;
    },
    noLook() {
      this.look = false;
    }
  },
  components: { "mo-mask": mask }
};
</script>
<style lang="scss" scoped>
.share-box {
  width: 100%;
  padding: 10px;
  height: auto;
  background-color: white;
  // margin-top: 20px;
  border-radius: 4px;
  .share-box-top {
    display: flex;
    .share-box-left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      // border: 1px solid #ccc;
      img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        margin-right: 10px;
      }
      p {
        font-size: 14px;
        height: 24px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
      }
      span {
        border: 1px solid green;
        font-size: 12px;
        padding-left: 5px;
        padding-right: 5px;
        color: green;
      }
    }
  }
  .share-box-bottom {
    display: flex;
    min-height: 42px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    h3 {
      height: 20px;
      line-height: 18px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
    }
    .box-main-msg {
      max-height: 42px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .share-box-btn {
      display: flex;
      align-items: center;
      height: 21px;
      font-size: 12px;
      color: #aaa;
      a {
        color: #aaa;
        &:hover {
          color: $gcolor;
        }
      }
      span,
      i {
        margin-right: 5px;
        cursor: pointer;
        &:hover {
          color: $gcolor;
        }
      }
    }
  }
  .share-box-right {
    height: 100%;
    // display: flex;
    // align-items: center;
    // justify-content: center;
  }
}
</style>